package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.SeminarsMapper;
import com.healthy.education.domain.Seminars;
import com.healthy.education.service.ISeminarsService;

/**
 * 研讨会信息Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class SeminarsServiceImpl implements ISeminarsService 
{
    @Autowired
    private SeminarsMapper seminarsMapper;

    /**
     * 查询研讨会信息
     * 
     * @param seminarId 研讨会信息主键
     * @return 研讨会信息
     */
    @Override
    public Seminars selectSeminarsBySeminarId(Long seminarId)
    {
        return seminarsMapper.selectSeminarsBySeminarId(seminarId);
    }

    /**
     * 查询研讨会信息列表
     * 
     * @param seminars 研讨会信息
     * @return 研讨会信息
     */
    @Override
    public List<Seminars> selectSeminarsList(Seminars seminars)
    {
        return seminarsMapper.selectSeminarsList(seminars);
    }

    /**
     * 新增研讨会信息
     * 
     * @param seminars 研讨会信息
     * @return 结果
     */
    @Override
    public int insertSeminars(Seminars seminars)
    {
        return seminarsMapper.insertSeminars(seminars);
    }

    /**
     * 修改研讨会信息
     * 
     * @param seminars 研讨会信息
     * @return 结果
     */
    @Override
    public int updateSeminars(Seminars seminars)
    {
        return seminarsMapper.updateSeminars(seminars);
    }

    /**
     * 批量删除研讨会信息
     * 
     * @param seminarIds 需要删除的研讨会信息主键
     * @return 结果
     */
    @Override
    public int deleteSeminarsBySeminarIds(Long[] seminarIds)
    {
        return seminarsMapper.deleteSeminarsBySeminarIds(seminarIds);
    }

    /**
     * 删除研讨会信息信息
     * 
     * @param seminarId 研讨会信息主键
     * @return 结果
     */
    @Override
    public int deleteSeminarsBySeminarId(Long seminarId)
    {
        return seminarsMapper.deleteSeminarsBySeminarId(seminarId);
    }
}
